package com.spring.mybatis;

import com.spring.config.AppConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test1 {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);
		UserService userService = (UserService) ctx.getBean("userServiceImpl");
		userService.register();
	}
}
